package com.lc.user.service;

import com.lc.user.service.impl.CodeFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "code-server",fallback = CodeFeignFallback.class,path = "/code")
public interface CodeFeign {
    @GetMapping("/validate/{email}/{code}")
    int validateCode(@PathVariable("email") String email,@PathVariable("code") String code);
}
